<?php /* Smarty version Smarty-3.1.8, created on 2012-04-12 08:30:48
         compiled from "C:\xampp\htdocs\Projects\Project_step\themes\release\albums\addAlbums.tpl" */ ?>
<?php /*%%SmartyHeaderCode:178704f866f484bb4f3-54988392%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '6e69adb9768a9662bc1ca4880ba6b70c1b7ca197' => 
    array (
      0 => 'C:\\xampp\\htdocs\\Projects\\Project_step\\themes\\release\\albums\\addAlbums.tpl',
      1 => 1334212157,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '178704f866f484bb4f3-54988392',
  'function' => 
  array (
  ),
  'version' => 'Smarty-3.1.8',
  'unifunc' => 'content_4f866f48522e89_61028937',
  'variables' => 
  array (
    'games' => 0,
    'item' => 0,
    'path' => 0,
  ),
  'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_4f866f48522e89_61028937')) {function content_4f866f48522e89_61028937($_smarty_tpl) {?><form>
    <table>
        <tr>
            <td>Введите Название альбома (Англ.)</td>
            <td>
                <input type="text" id="title" name="title" size="20" value="" style="background-color:White;" maxlength="25" />
            </td>
        </tr>
        <tr>
            <td>Введите Описание</td>
            <td>
            	<textarea id="dest" style="background-color:White;"></textarea>
            </td>
        </tr>
        <tr>
        	<td>
            	<select id="sel_game">
                    <option value="null">Укажите игру</option>	
                    <?php  $_smarty_tpl->tpl_vars['item'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['item']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['games']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['item']->key => $_smarty_tpl->tpl_vars['item']->value){
$_smarty_tpl->tpl_vars['item']->_loop = true;
?>
                        <option value="<?php echo $_smarty_tpl->tpl_vars['item']->value->id;?>
"><?php echo $_smarty_tpl->tpl_vars['item']->value->name;?>
</option>
                    <?php } ?>
                </select>
            </td>
        </tr>
    </table>
    <button id="btnAddAlbums" type="button" value="<?php echo $_smarty_tpl->tpl_vars['path']->value;?>
" onclick="AddAlbums()" >Создать</button>
    
    <div id="AlbumsError" style="text-align:center;"></div>
</form><?php }} ?>